{"size": 3587, "ext": "js", "max_stars_repo_path": "models/organizer/restaurant.js", "max_stars_repo_name": "evoluteur/evolutility-models", "max_stars_repo_stars_event_min_datetime": "2019-04-20T07:18:59.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-11T02:44:26.000Z", "max_issues_repo_path": "models/organizer/restaurant.js", "max_issues_repo_name": "evoluteur/evolutility-models", "max_issues_repo_issues_event_min_datetime": "2020-12-30T18:24:36.000Z", "max_issues_repo_issues_event_max_datetime": "2020-12-31T06:59:54.000Z", "max_forks_repo_path": "models/organizer/restaurant.js", "max_forks_repo_name": "evoluteur/evolutility-models", "max_forks_repo_forks_event_min_datetime": "2019-04-20T07:18:46.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-31T22:02:13.000Z"}
{"max_stars_count": 7, "max_issues_count": 1, "max_forks_count": 3, "avg_line_length": 15.8716814159, "max_line_length": 89, "alphanum_fraction": 0.4137161974}
/*
  Evolutility Model for Restaurants
*/

module.exports = {
	"id": "restaurant",
	"oid": 4,
	"world": "organizer",
	"active": true,
	position: 30,
	"table": "restaurant",
	"titleField": "name",
	"label": "Restaurants",
	"icon": "resto.gif",
	"name": "restaurant",
	"namePlural": "restaurants",
	noStats: true,
	"fields": [
		{
			"id": "name",
			"type": "text",
			"label": "Name",
			"required": true,
			"width": 62,
			"inMany": true,
			"column": "name",
			"inSearch": true,
		},
		{
			"id": "cuisine",
			"type": "lov",
			"column": "cuisine_id",
			"label": "Cuisine",
			"width": 38,
			"list": [
				{
					"id": "1",
					"text": "French"
				},
				{
					"id": "2",
					"text": "Vietnamese"
				},
				{
					"id": "3",
					"text": "Chinese"
				},
				{
					"id": "4",
					"text": "Fusion"
				},
				{
					"id": "5",
					"text": "Japanese"
				},
				{
					"id": "6",
					"text": "Thai"
				},
				{
					"id": "7",
					"text": "Mexican"
				},
				{
					"id": "8",
					"text": "Mediterranean"
				},
				{
					"id": "9",
					"text": "American"
				},
				{
					"id": "10",
					"text": "Indian"
				},
				{
					"id": "11",
					"text": "Korean"
				},
				{
					"id": "12",
					"text": "Italian"
				},
				{
					"id": "13",
					"text": "Spanish"
				},
				{
					"id": "14",
					"text": "Others"
				}
			],
			"lovTable": "restaurant_cuisine",
			"inMany": true
		},
		{
			"id": "price",
			"type": "lov",
			"column": "price_id",
			"label": "Price",
			"width": 38,
			"list": [
				{
					"id": "1",
					"text": "$"
				},
				{
					"id": "2",
					"text": "$$"
				},
				{
					"id": "3",
					"text": "$$$"
				},
				{
					"id": "4",
					"text": "$$$$"
				},
				{
					"id": "5",
					"text": "$$$$$"
				}
			],
			"lovTable": "restaurant_price",
			"inMany": true
		},
		{
			"id": "web",
			"type": "url",
			"label": "web",
			"width": 100,
			"column": "web"
		},
		{
			"id": "yelp",
			"type": "url",
			"label": "Yelp",
			"width": 62,
			"column": "yelp"
		},
		{
			"id": "favorite",
			"type": "textmultiline",
			"label": "Favorite dish",
			"maxLength": 2000,
			"width": 62,
			"height": 2,
			"column": "favorite",
			"inSearch": true,
		},
		{
			"id": "hours",
			"type": "textmultiline",
			"label": "Hours",
			"width": 38,
			"height": 2,
			"column": "hours"
		},
		{
			"id": "notes",
			"type": "textmultiline",
			"label": "Notes",
			"maxLength": 2000,
			"width": 100,
			"height": 3,
			"column": "notes",
			"inSearch": true,
		},
		{
			"id": "phone",
			"type": "text",
			"label": "Phone",
			"maxLength": 20,
			"width": 100,
			"column": "phone"
		},
		{
			"id": "address",
			"type": "textmultiline",
			"label": "Address",
			"maxLength": 150,
			"width": 100,
			"height": 2,
			"column": "address",
			"inSearch": true,
		},
		{
			"id": "city",
			"type": "text",
			"label": "City",
			"maxLength": 100,
			"width": 50,
			"inMany": true,
			"column": "city",
			"inSearch": true,
		},
		{
			"id": "state",
			"type": "text",
			"label": "State",
			"width": 15,
			"column": "state"
		},
		{
			"id": "zip",
			"type": "text",
			"label": "Zip",
			"maxLength": 12,
			"width": 20,
			"column": "zip"
		}
	],

    groups: [
        {
          id:"pResto", type:"panel", 
          label: "Restaurant", width: 62,
          fields: ["name","cuisine","schedule","yelp","price","favorite","hours","notes"]
        },
        {
          id:"pContact", type:"panel", 
          label: "Contact", width: 38,
          fields: ["phone","web","address","city","state","zip",]
        },
    ]
}