repo.or.cz
/
asis23-votoe-server.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Make `preflight` request pass okay
[asis23-votoe-server.git]
/
votar.sql
blob
0d0bc9b968713dde0499ee41616081e54aa4e5db
1
CREATE TABLE IF NOT EXISTS candidatos (
2
id INTEGER PRIMARY KEY NOT NULL,
3
nombre TEXT NOT NULL
4
);
5
6
CREATE TABLE IF NOT EXISTS votos (
7
id INTEGER PRIMARY KEY NOT NULL,
8
candidato_id INTEGER NOT NULL,
9
FOREIGN KEY (candidato_id)
10
REFERENCES candidatos (id)
11
ON DELETE CASCADE
12
ON UPDATE NO ACTION
13
);