Fakultas Ilmu Komputer UI

Commit acdd7f6d authored by addffa's avatar addffa
Browse files

[GREEN] implementasi model mustahik

parent 265a05bf
......@@ -4,4 +4,25 @@ from django.db import models
class Mustahik(models.Model):
pass
class Status(models.TextChoices):
JANDA = ('JANDA', 'Janda')
MISKIN = ('MISKIN', 'Miskin')
YATIM = ('YATIM', 'Yatim')
name = models.CharField(max_length=32)
no_ktp = models.CharField(max_length=32)
phone = models.CharField(max_length=32, blank=True)
address = models.TextField()
province = models.CharField(max_length=32)
regency = models.CharField(max_length=32)
rt = models.CharField(max_length=4)
rw = models.CharField(max_length=4)
birthdate = models.DateField()
status = models.CharField(
max_length=32,
choices=Status.choices,
default=Status.MISKIN,
)
family_size = models.PositiveSmallIntegerField()
description = models.TextField()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment