feat: refs #7216 logUnpaid #2609
|
@ -0,0 +1,8 @@
|
|||
DELIMITER $$
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`clientUnpaid_beforeInsert`
|
||||
BEFORE INSERT ON `clientUnpaid`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.editorFk = account.myUser_getId();
|
||||
END$$
|
||||
DELIMITER ;
|
|
@ -0,0 +1,8 @@
|
|||
DELIMITER $$
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`clientUnpaid_beforeUpdate`
|
||||
BEFORE UPDATE ON `clientUnpaid`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.editorFk = account.myUser_getId();
|
||||
END$$
|
||||
DELIMITER ;
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE vn.clientUnpaid
|
||||
ADD editorFk INT UNSIGNED NULL,
|
||||
ADD CONSTRAINT ClientUnpaid_editorFk FOREIGN KEY (editorFk)
|
||||
REFERENCES account.`user`(id);
|
|
@ -0,0 +1,5 @@
|
|||
name: unpaid
|
||||
jsegarra marked this conversation as resolved
Outdated
|
||||
columns:
|
||||
jsegarra
commented
la columna editorFk, no hay que añadirla? la columna editorFk, no hay que añadirla?
|
||||
clientFk: client
|
||||
dated: date
|
||||
amount: amount
|
|
@ -0,0 +1,5 @@
|
|||
name: impagado
|
||||
jsegarra
commented
la columna editorFk, no hay que añadirla? la columna editorFk, no hay que añadirla?
|
||||
columns:
|
||||
clientFk: cliente
|
||||
dated: fecha
|
||||
amount: cantidad
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"name": "ClientUnpaid",
|
||||
"base": "VnModel",
|
||||
"mixins": {
|
||||
"Loggable": true
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "clientUnpaid"
|
||||
|
|
Loading…
Reference in New Issue
uppaid o unpaid?