import json

from django.contrib.contenttypes.fields import GenericRelation
from django.db import models

class EmxTtActivityLocationFinal(models.Model):
    activity_code = models.CharField(max_length=255)
    location_code = models.CharField(max_length=255)
    record_state = models.CharField(max_length=100, db_comment="U - update/create, D - Delete")

    COLUMN_MATCH_EMX = {
        "activity_code": "ACTIVITY_ID",
        "location_code": "LOCATION_ID",
        "record_state": "RECORD_STATE",
    }
    class Meta:
        db_table = "emx_tt_activity_location_final"