-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_aur.sql
43 lines (41 loc) · 1.06 KB
/
create_aur.sql
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
create table if not exists
public.aur (
volery_last_synced timestamptz DEFAULT current_timestamp,
-- repository fields
primary key ("Name"),
-- do not use CONSTRAINT ID_Name unique("Name"),
"ID" bigint,
"Name" text,
"PackageBaseID" bigint,
"PackageBase" text,
"Version" text,
"Description" text,
"URL" text,
"NumVotes" bigint,
"Popularity" float,
"OutOfDate" bigint,
-- timestamp in unix seconds
"CoMaintainers" text[],
"Maintainer" text,
"Submitter" text,
"FirstSubmitted" bigint,
-- timestamp in unix seconds
"LastModified" bigint,
-- timestamp in unix seconds
"URLPath" text,
"Depends" text[],
"MakeDepends" text[],
"License" text[],
"Keywords" text[],
"Conflicts" text[],
"Provides" text[],
"OptDepends" text[],
"CheckDepends" text[],
"Replaces" text[],
"Groups" text[],
volery_id bigserial UNIQUE
);
alter table public.aur enable row level security;
create policy "Enable read access for all users" on public.aur for
select
using (true);