-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBill.js
61 lines (58 loc) · 2.89 KB
/
Bill.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const mongoose = require('mongoose'),
Schema = mongoose.Schema;
const billSchema = new Schema(
{
bill_id: { type: 'object', properties: [Object], index: { unique: true } },
bill_slug: { type: 'object', properties: [Object] },
congress: { type: 'object', properties: [Object] },
bill: { type: 'object', properties: [Object] },
bill_type: { type: 'object', properties: [Object] },
number: { type: 'object', properties: [Object] },
bill_uri: { type: 'object', properties: [Object] },
title: { type: 'object', properties: [Object] },
short_title: { type: 'object', properties: [Object] },
sponsor_title: { type: 'object', properties: [Object] },
sponsor: { type: 'object', properties: [Object] },
sponsor_id: { type: 'object', properties: [Object] },
sponsor_uri: { type: 'object', properties: [Object] },
sponsor_party: { type: 'object', properties: [Object] },
sponsor_state: { type: 'object', properties: [Object] },
gpo_pdf_uri: { type: 'object', properties: [Object] },
congressdotgov_url: { type: 'object', properties: [Object] },
govtrack_url: { type: 'object', properties: [Object] },
introduced_date: { type: 'object', properties: [Object] },
active: { type: 'object', properties: [Object] },
last_vote: { type: 'object', properties: [Object] },
house_passage: { type: 'object', properties: [Object] },
senate_passage: { type: 'object', properties: [Object] },
enacted: { type: 'object', properties: [Object] },
vetoed: { type: 'object', properties: [Object] },
houseMembers: { type: 'object', properties: [Object] },
houseMembers_by_party: { type: 'object', properties: [Object] },
withdrawn_houseMembers: { type: 'object', properties: [Object] },
primary_subject: {
type: 'object',
properties: [Object],
index: { unique: false },
},
committees: { type: 'object', properties: [Object] },
committee_codes: { type: 'object', properties: [Object] },
subcommittee_codes: { type: 'object', properties: [Object] },
latest_major_action_date: { type: 'object', properties: [Object] },
latest_major_action: { type: 'object', properties: [Object] },
house_passage_vote: { type: 'object', properties: [Object] },
senate_passage_vote: { type: 'object', properties: [Object] },
summary: { type: 'object', properties: [Object] },
summary_short: { type: 'object', properties: [Object] },
cbo_estimate_url: { type: 'object', properties: [Object] },
versions: { type: 'object', properties: [Object] },
actions: { type: 'object', properties: [Object] },
presidential_statements: { type: 'object', properties: [Object] },
votes: { type: 'object', properties: [Object] },
createdAt: { type: Date, default: Date.now },
updatedAt: { type: Date, default: Date.now },
},
{ timestamps: true }
);
const Bill = mongoose.model('Bill', billSchema);
module.exports = Bill;