<commit_before>require! {
	mongoose
	'../../config'
}

db = mongoose.connect config.mongo.uri, config.mongo.options

circle-join-request-schema = new mongoose.Schema do
	created-at: { type: Date, default: Date.now }
	user-id: { type: Number, required: yes }

circle-member-schema = new mongoose.Schema do
	user-id: { type: Number, required: yes }
	created-at: { type: Date, default: Date.now }
	title: { type: String }
	is-master: { type: Boolean, default: no }
	is-executive: { type: Boolean, default: no }
	can-select-join-request: { type: Boolean, default: no }
	can-exclude-member: { type: Boolean, default: no }
	can-create-thread: { type: Boolean, default: no }
	can-create-note: { type: Boolean, default: no }

circle-schema = new mongooes.Schema do
	created-at: { type: Date, default: Date.now }
	description: { type: String }
	join-requests: {[circle-join-request-schema]}
	members: {[circle-member-schema]}
	name: { type: String, required: yes }
	screen-name: { type: String, required: yes }
	user-id: { type: Number, required: yes }

exports = db.model \Circle circle-schema<commit_msg>Fix scheme<commit_after>require! {
	mongoose
	'../../config'
}

db = mongoose.connect config.mongo.uri, config.mongo.options

circle-join-request-schema = new mongoose.Schema do
	created-at: { type: Date, default: Date.now }
	user-id: { type: Number, required: yes }

circle-member-schema = new mongoose.Schema do
	user-id: { type: Number, required: yes }
	created-at: { type: Date, default: Date.now }
	title: { type: String }
	is-master: { type: Boolean, default: no }
	is-executive: { type: Boolean, default: no }
	can-select-join-request: { type: Boolean, default: no }
	can-exclude-member: { type: Boolean, default: no }
	can-create-thread: { type: Boolean, default: no }
	can-create-note: { type: Boolean, default: no }

circle-schema = new mongooes.Schema do
	created-at: { type: Date, default: Date.now }
	description: { type: String }
	join-requests: [circle-join-request-schema]
	members: [circle-member-schema]
	name: { type: String, required: yes }
	screen-name: { type: String, required: yes }
	user-id: { type: Number, required: yes }

exports = db.model \Circle circle-schema
{'fraction_non_alphanumeric': 0.14997713763145862, 'fraction_numerical': 0.0, 'mean_word_length': 4.04147465437788, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '769709', 'n_tokens_mistral': 744, 'n_tokens_neox': 749, 'n_words': 206}