# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from django.db import models


class AuthGroup(models.Model):
    name = models.CharField(unique=True, max_length=150)

    class Meta:
        managed = False
        db_table = 'auth_group'


class AuthGroupPermissions(models.Model):
    group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
    permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'auth_group_permissions'
        unique_together = (('group', 'permission'),)


class AuthPermission(models.Model):
    content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
    codename = models.CharField(max_length=100)
    name = models.CharField(max_length=255)

    class Meta:
        managed = False
        db_table = 'auth_permission'
        unique_together = (('content_type', 'codename'),)


class AuthUser(models.Model):
    password = models.CharField(max_length=128)
    last_login = models.DateTimeField(blank=True, null=True)
    is_superuser = models.BooleanField()
    username = models.CharField(unique=True, max_length=150)
    last_name = models.CharField(max_length=150)
    email = models.CharField(max_length=254)
    is_staff = models.BooleanField()
    is_active = models.BooleanField()
    date_joined = models.DateTimeField()
    first_name = models.CharField(max_length=150)

    class Meta:
        managed = False
        db_table = 'auth_user'


class AuthUserGroups(models.Model):
    user = models.ForeignKey(AuthUser, models.DO_NOTHING)
    group = models.ForeignKey(AuthGroup, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'auth_user_groups'
        unique_together = (('user', 'group'),)


class AuthUserUserPermissions(models.Model):
    user = models.ForeignKey(AuthUser, models.DO_NOTHING)
    permission = models.ForeignKey(AuthPermission, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'auth_user_user_permissions'
        unique_together = (('user', 'permission'),)


class DjangoAdminLog(models.Model):
    action_time = models.DateTimeField()
    object_id = models.TextField(blank=True, null=True)
    object_repr = models.CharField(max_length=200)
    change_message = models.TextField()
    content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING, blank=True, null=True)
    user = models.ForeignKey(AuthUser, models.DO_NOTHING)
    action_flag = models.PositiveSmallIntegerField()

    class Meta:
        managed = False
        db_table = 'django_admin_log'


class DjangoContentType(models.Model):
    app_label = models.CharField(max_length=100)
    model = models.CharField(max_length=100)

    class Meta:
        managed = False
        db_table = 'django_content_type'
        unique_together = (('app_label', 'model'),)


class DjangoMigrations(models.Model):
    app = models.CharField(max_length=255)
    name = models.CharField(max_length=255)
    applied = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'django_migrations'


class DjangoSession(models.Model):
    session_key = models.CharField(primary_key=True, max_length=40)
    session_data = models.TextField()
    expire_date = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'django_session'


class EkosistemPost(models.Model):
    content = models.TextField()
    body = models.TextField(blank=True, null=True)
    title = models.CharField(max_length=255)
    slug = models.CharField(unique=True, max_length=50)

    class Meta:
        managed = False
        db_table = 'ekosistem_post'


class PegawaiAktif(models.Model):
    nipbaru = models.IntegerField(db_column='NIPBARU', blank=True, null=True)  # Field name made lowercase.
    nip = models.IntegerField(db_column='NIP', blank=True, null=True)  # Field name made lowercase.
    niplama = models.TextField(db_column='NIPLAMA', blank=True, null=True)  # Field name made lowercase.
    nama = models.TextField(db_column='NAMA', blank=True, null=True)  # Field name made lowercase.
    gelardepan = models.TextField(db_column='GELARDEPAN', blank=True, null=True)  # Field name made lowercase.
    gelarbelakang = models.TextField(db_column='GELARBELAKANG', blank=True, null=True)  # Field name made lowercase.
    tempatlahir = models.TextField(db_column='TEMPATLAHIR', blank=True, null=True)  # Field name made lowercase.
    tanggallahir = models.TextField(db_column='TANGGALLAHIR', blank=True, null=True)  # Field name made lowercase.
    usia = models.IntegerField(db_column='USIA', blank=True, null=True)  # Field name made lowercase.
    kawin = models.TextField(db_column='KAWIN', blank=True, null=True)  # Field name made lowercase.
    kodekelamin = models.TextField(db_column='KODEKELAMIN', blank=True, null=True)  # Field name made lowercase.
    kodeagama = models.IntegerField(db_column='KODEAGAMA', blank=True, null=True)  # Field name made lowercase.
    nomorkartupegawai = models.TextField(db_column='NOMORKARTUPEGAWAI', blank=True, null=True)  # Field name made lowercase.
    npwp = models.TextField(db_column='NPWP', blank=True, null=True)  # Field name made lowercase.
    tanggalmulaijabatan = models.TextField(db_column='TANGGALMULAIJABATAN', blank=True, null=True)  # Field name made lowercase.
    kodejabatan = models.TextField(db_column='KODEJABATAN', blank=True, null=True)  # Field name made lowercase.
    esl1 = models.TextField(db_column='ESL1', blank=True, null=True)  # Field name made lowercase.
    esl2 = models.TextField(db_column='ESL2', blank=True, null=True)  # Field name made lowercase.
    esl3 = models.TextField(db_column='ESL3', blank=True, null=True)  # Field name made lowercase.
    esl4 = models.TextField(db_column='ESL4', blank=True, null=True)  # Field name made lowercase.
    esl5 = models.TextField(db_column='ESL5', blank=True, null=True)  # Field name made lowercase.
    tanggalskjabatan = models.TextField(db_column='TANGGALSKJABATAN', blank=True, null=True)  # Field name made lowercase.
    tanggalpelantikan = models.TextField(db_column='TANGGALPELANTIKAN', blank=True, null=True)  # Field name made lowercase.
    noskjabatan = models.TextField(db_column='NOSKJABATAN', blank=True, null=True)  # Field name made lowercase.
    namajabatan = models.TextField(db_column='NAMAJABATAN', blank=True, null=True)  # Field name made lowercase.
    kode_eselonisasi = models.FloatField(db_column='KODE ESELONISASI', blank=True, null=True)  # Field name made lowercase. Field renamed to remove unsuitable characters.
    peringkat = models.IntegerField(db_column='PERINGKAT', blank=True, null=True)  # Field name made lowercase.
    tanggalmulaipangkat = models.TextField(db_column='TANGGALMULAIPANGKAT', blank=True, null=True)  # Field name made lowercase.
    pangkatgolongan = models.TextField(db_column='PANGKATGOLONGAN', blank=True, null=True)  # Field name made lowercase.
    noskpangkat = models.TextField(db_column='NOSKPANGKAT', blank=True, null=True)  # Field name made lowercase.
    tanggalskpangkat = models.TextField(db_column='TANGGALSKPANGKAT', blank=True, null=True)  # Field name made lowercase.
    masakerjatahun = models.IntegerField(db_column='MASAKERJATAHUN', blank=True, null=True)  # Field name made lowercase.
    masakerjabulan = models.IntegerField(db_column='MASAKERJABULAN', blank=True, null=True)  # Field name made lowercase.
    angka_kredit = models.IntegerField(db_column='ANGKA KREDIT', blank=True, null=True)  # Field name made lowercase. Field renamed to remove unsuitable characters.
    tanggalijazah = models.TextField(db_column='TANGGALIJAZAH', blank=True, null=True)  # Field name made lowercase.
    nomorijazah = models.TextField(db_column='NOMORIJAZAH', blank=True, null=True)  # Field name made lowercase.
    jenjang = models.TextField(db_column='JENJANG', blank=True, null=True)  # Field name made lowercase.
    uraianpendidikan = models.TextField(db_column='URAIANPENDIDIKAN', blank=True, null=True)  # Field name made lowercase.
    namalembagapendidikan = models.TextField(db_column='NAMALEMBAGAPENDIDIKAN', blank=True, null=True)  # Field name made lowercase.

    class Meta:
        managed = False
        db_table = 'pegawai_aktif'


class SinergiPost(models.Model):
    content = models.TextField()
    title = models.CharField(max_length=255)
    body = models.TextField(blank=True, null=True)
    slug = models.CharField(unique=True, max_length=50)

    class Meta:
        managed = False
        db_table = 'sinergi_post'
