{
	"name": "table/local/resource/timecard.json",
	"table_name": "timecard",
	"table_prefix": "timec",
	"main_table": "person",
	"record_type": [""],
	"table_name_language": {
		"": "Timecard"
	},
	"save_script": [],
	"default_field": "table/prf/default_field.json",
	"save_preference": "save/local/resource/timecard/save.json",
	"field_change": [
		{
			"name": "timecard_state",
			"old_name": ["state"]
		}
	],
	"default_order": [
		{
			"field": "modify_id",
			"order": "<"
		}
	],
	"field": [
		{
			"field_name": "employee_id",
			"field_type": "varchar",
			"field_length": 40,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "person_id",
					"linked_record_type": "",
					"linked_table": "person",
					"linking_record_type": ""
				}
			]
		},
		{
			"field_name": "timecard_state",
			"field_type": "varchar",
			"field_length": 20
		},
		{
			"field_name": "start_time",
			"field_type": "timestamp"
		},
		{
			"field_name": "end_time",
			"field_type": "timestamp"
		},
		{
			"field_name": "work_time",
			"field_type": "double"
		},
		{
			"field_name": "end_reason",
			"field_type": "varchar",
			"field_length": 80
		},
		{
			"field_name": "location",
			"field_type": "varchar",
			"field_length": 80
		},
		{
			"field_name": "work_shift",
			"field_type": "integer"
		},
		{
			"field_name": "info",
			"field_type": "text"
		}
	],
	"extra_field": [
		{
			"field_name": "json_data.salary_type",
			"field_type": "varchar",
			"field_length": 80
		},
		{
			"field_name": "json_data.work_group",
			"field_type": "varchar",
			"field_length": 80
		},
		{
			"field_name": "json_data.work_subgroup",
			"field_type": "varchar",
			"field_length": 80
		},
		{
			"field_name": "json_data.unit_price",
			"field_type": "double"
		}
	]
}
