type type_group = {
	name : boolean;
};


type type_property = {
	name : string;
	type : (
		"boolean"
		|
		"int"
		|
		"string"
	);
};


type type_member = {
	name : string;
	groups : Array<type_group>;
	email_address : (null | string);
	password_image : (null | string);
	active : boolean;
};


type type_model = {
	groups : Array<{id : int; data : type_group;}>;
	properties : Array<{id : int; data : type_property;}>;
	members : Array<{id : int; data : type_member;}>;
};


const model_linke_sx : type_model = {
	"groups": [
		{
			"id": 1,
			"data": {
				"name": "lv-sachsen"
			}
		},
		{
			"id": 2,
			"data": {
				"name": "kv-zwickau"
			}
		},
		{
			"id": 3,
			"data": {
				"name": "ov-glauchau"
			}
		},
		{
			"id": 4,
			"data": {
				"name": "lag-netzpolitik_und_gaming"
			}
		},
		{
			"id": 5,
			"data": {
				"name": "kv-leipzig"
			}
		},
		{
			"id": 6,
			"data": {
				"name": "kv-dresden"
			}
		},
	],
	"properties": [
		{
			"id": 1,
			"data": {
				"name": "real_name",
				"type": "string"
			}
		},
		{
			"id": 2,
			"data": {
				"name": "allow_email_sending",
				"type": "boolean"
			}
		},
	],
	"members": [
		{
			"id": 1,
			"data": {
				"name": "m1973476",
				"groups": [1, 2, 3, 4],
				"email_address": "christian.frass@dielinke-glauchau.de",
				"password_image": "____",
				"active": true,
				"properties": [
					{
						"id": 1,
						"value": "Christian Fraß"
					},
					{
						"id": 2,
						"value": true
					},
				]
			}
		},
		{
			"id": 2,
			"data": {
				"name": "m2487647",
				"groups": [1, 2, 4, 6],
				"email_address": "paul.furkert@dielinke-dresden.de",
				"password_image": "____",
				"active": true,
				"properties": [
					{
						"id": 1,
						"value": "Paul Furkert"
					},
					{
						"id": 2,
						"value": true
					},
				]
			}
		},
	],
};


const model_ramsch_sx : type_model = {
	"groups": [
		{
			"id": 1,
			"data": {
				"name": "kulturknall"
			}
		},
		{
			"id": 2,
			"data": {
				"name": "lixer"
			}
		},
		{
			"id": 3,
			"data": {
				"name": "dill"
			}
		},
	],
	"properties": [
	],
	"members": [
		{
			"id": 1,
			"data": {
				"name": "fenris",
				"groups": [1, 2, 3],
				"email_address": "roydfalk@folksprak.org",
				"password_image": "____",
				"active": true,
				"properties": [
				]
			}
		},
		{
			"id": 2,
			"data": {
				"name": "magda",
				"groups": [2],
				"email_address": "magda@zschocher.com",
				"password_image": "____",
				"active": true,
				"properties": [
				]
			}
		},
	]
};
